package com.example.demo.service.impl;

import com.example.demo.entity.TComment;
import com.example.demo.mapper.TCommentMapper;
import com.example.demo.service.ITCommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wzz
 * @since 2023-09-24
 */
@Service
public class TCommentServiceImpl extends ServiceImpl<TCommentMapper, TComment> implements ITCommentService {
    @Resource
    private TCommentMapper tCommentMapper;
    public List<TComment> findTree(Integer articleId) {
       return tCommentMapper.findTree(articleId);
    }
}
